<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
	var now=new Date();
	
	console.log(now)//Fri Nov 20 2015 16:32:25 GMT+0800 (中国标准时间)
	
	console.log(now.getDate());
	console.log(now.getDay());
	console.log(now.getFullYear());
	console.log(now.getHours());
	console.log(now.getMilliseconds());
	console.log(now.getMinutes());
	console.log(now.getMonth()+1);
	console.log(now.getSeconds());
	console.log(now.getTime());
	
	console.log(now.setFullYear(2088));
	console.log(now.setHours(24));
	
	console.log(now);
	
</script>
</head>

<body>
</body>
</html>
